import request from "@/utils/request";

// 新增登记信息
export const _saveRegistration = (registration) => request.post('/api/registration/save', registration)

// 更新登记信息
export const _updateRegistration = (registration) => request.put('/api/registration/update', registration)

// 学生登记信息修改
export const _updateByStudent = (registration) => request.post('/api/registration/updateByStudent', registration)

// 删除登记信息
export const _deleteRegistration = (id) => request.delete(`/api/registration/delete/${id}`)

// 根据id获取登记信息
export const _getRegistrationById = (id) => request.get(`/api/registration/getById/${id}`)

// 获取登记列表
export const _getRegistrationList = () => request.get('/api/registration/list')

// 获取我的登记列表
export const _getMyRegistration = () => request.get('/api/registration/myRegistration')

